<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<title>用户管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/mlib.css" />
</head>
<body>

	
	<div class="mindmap">
	
		<div class="mindmap-main">
            <div class="function-bar" id="function-bar">
				<div class="user-message" id="user-message">
					<span class="glyphicon glyphicon-user" data-toggle="modal" data-target="#user-logoutall" id ="user-info"></span>
				</div>
				<div class="toolbar" id="show-tree">
					<span class="glyphicon glyphicon-th" id="show-tree-icon" ></span>
				</div>
				<div class="toolbar" id="toolbar">
					<span class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#newRole" id="add-role" style="display:none"><span id="schem-plus-t">新建</span></span>
				</div>
				<div class="toolbar" id="toolbar">
					<span class=" glyphicon glyphicon-edit"  id="edit-role" style="display:none"><span id="schem-plus-t">编辑</span></span>
				</div>
				<div class="toolbar" id="toolbar">
					<span class="glyphicon glyphicon-trash"  id="delete-role" style="display:none"><span id="schem-plus-t">删除</span></span>
				</div>
			</div>
			
			<div class="left-bar" id="left-bar">
				<div id="treeview5" class=""></div>
			</div>
			
		</div>
		<div class="term-show" id ="term-show"></div>
	</div>
	<div class="modal fade" id="newRole" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<span class="glyphicon">在此创建一个新角色</span>
				</div>
				<div class="modal-body">
					<div class="input-group">
						<span class="input-group-addon">角色名称</span> 
						
						<input type="text"
							class="form-control" id="role-name" placeholder="如智能家居">
					</div>
					<br>
					<div>
						<div id="role-tree"></div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" id="perm-submit"
						data-dismiss="modal">是</button>
					<button type="button" class="btn btn-default" id="perm-close" data-dismiss="modal">否
					</button>
					
				</div>
			</div>
		</div>
	</div>
		<div class="modal fade" id="editRole" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<span class="glyphicon">在此编辑角色</span>
				</div>
				<div class="modal-body">
					<div class="input-group">
						<span class="input-group-addon">角色名称</span> 
						
						<input type="text"
							class="form-control" id="edit-role-name" placeholder="如智能家居">
					</div>
					<br>
					<div>
						<div id="edit-role-tree"></div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" id="edit-perm-submit"
						data-dismiss="modal">是</button>
					<button type="button" class="btn btn-default" id="perm-close" data-dismiss="modal">否
					</button>
					
				</div>
			</div>
		</div>
	</div>
	<div class="modal fade" id="deleteRole" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<span class="glyphicon">是否删除该角色</span>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" id="delete-role-submit"
						data-dismiss="modal">是</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">否
					</button>
					
				</div>
			</div>
		</div>
	</div>
	
	<div class="modal fade" id="user-logoutall" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<span class="glyphicon">是否退出登录</span>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" id="user-logout"
						data-dismiss="modal">是</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">否
					</button>
					
				</div>
			</div>
		</div>
	</div>
	<script src="../js/packages/require.js" data-main="../js/roleadmin"></script>
	<div id="hidebg" class="modal fade in" style="display:none"></div>
</body>
</html>